package com.sky.mapper.admin;

import com.sky.pojo.Merchant;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

public interface MerchantMapper {

    @Select("select * from merchant where id=#{id}")
    public Merchant selectById(Long id);


    /**
     * 用户端获取商家信息
     * @param id
     * @return
     */
    @Select("select * from merchant where id = #{id}")
    Merchant getShopById(@Param("id") Long id);
}